import java.awt.Color;
import java.awt.FlowLayout;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
 * Help_Window
 * Frame containing a label with an animation, explaining how to mark the the image. 
 */
public class Help_Window extends JFrame {
	
	private JPanel jContentPane = null;
	
	public Help_Window() {
		super();
		initialize();
	}
	
	/**
	 * Initializes the frame.
	 */
	private void initialize() {
		this.setContentPane(getJContentPane());
		this.setUndecorated(true);
		this.setVisible(true);
		this.setSize(150, 250);
		this.setAlwaysOnTop(true);
	}
	
	/**
	 * Sets up the panel.
	 * @return
	 */
	private JPanel getJContentPane() {
		if(jContentPane == null) {
			JLabel top_JLabel = new JLabel(),
				   bottom_JLabel = new JLabel();
			top_JLabel.setText("<html>Du markere ved at<br>klikke og hive.</html>");
			bottom_JLabel.setIcon(new ImageIcon(ImageDB.images.get("default_man")));
			
			jContentPane = new JPanel();
			jContentPane.setLayout(new FlowLayout());
			jContentPane.setBackground(Color.WHITE);
			jContentPane.add(top_JLabel);
			jContentPane.add(bottom_JLabel);
		}
		
		return jContentPane;
	}
}
